﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using DAL;
using Utils;

namespace BLL
{
    public class EmpContractBiz
    {
        EmpContractDao empContractDao = new EmpContractDao();

        public bool Update(string tableName, SortedDictionary<string, string> sdList)
        {
            return empContractDao.Update(tableName, sdList);
        }
        public bool Insert(string tableName, SortedDictionary<string, string> sdList)
        {
            return empContractDao.Insert(tableName, sdList);
        }
        public bool DeleteOneInfo(string contractID)
        {
            return empContractDao.DeleteOneInfo(contractID);
        }
        public DataTable GetOneInfo(string contractID)
        {
            return empContractDao.GetOneInfo(contractID);
        }
        public bool IsExistContractNo(string contractNo)
        {
            return empContractDao.IsExistContractNo(contractNo);
        }
        public DataTable GetLists(string serWord, string bTime, string eTime, string statu, string timeType)
        {
            return empContractDao.GetLists(serWord, bTime, eTime, statu, timeType);
        }
        public bool UpdateToEnd()
        {
            return empContractDao.UpdateToEnd();
        }
    }
}
